/**
 * 主页js
 */

if ( location.href == "http://tyj.jl.gov.cn/index.html" || location.href == "http://tyj.jl.gov.cn/" ) {
    //第二部分，含iframe---待定

	// 总计时器，保证目标加载完毕再执行js（轮播+国内动态+国务院[iframe]）
	_EsdDynamicTransformationScript.intervalTyj = setInterval(function(){
		
		if( ( $(".focusBox-picture .pic li:eq(4) span a") != undefined ) 
				&& ( $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(0)") != undefined ) 
				&& ( $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(0)") != undefined )
				&& ( $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(2) a:eq(0)") != undefined )
				&& ( $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(0)") != undefined )
				&& ( $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(0)") != undefined )
				&& ( $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(0)") != undefined )
				&& ( $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(0)") != undefined )  ){
			clearInterval(_EsdDynamicTransformationScript.intervalTyj);
			
			part_First();
			part_Second();
			part_Third();
			part_Forth();
			part_Sixth();
			part_Seventh();
			part_Eigth();
			part_Ninth();
			
		}
		
	}, 500);
	
	
	
	var part_Second = function(){
    //第三部分

    //各个选项名称对应的内容数量
    _EsdDynamicTransformationScript.num13 = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(0) a").length - 1;
    _EsdDynamicTransformationScript.num14 = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(1) a").length - 1;
    _EsdDynamicTransformationScript.num15 = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(2) a").length - 1;

    //各个选项名称
    _EsdDynamicTransformationScript.esd3TagNum1 = $(".Second-line-index .outBox-left .hd ul li:eq(0) a");
    _EsdDynamicTransformationScript.esd3TagNum2 = $(".Second-line-index .outBox-left .hd ul li:eq(1) a");
    _EsdDynamicTransformationScript.esd3TagNum3 = $(".Second-line-index .outBox-left .hd ul li:eq(2) a");

    //各个选项中的第一个内容
    _EsdDynamicTransformationScript.esd3TagNum1Content1 = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(0)");
    _EsdDynamicTransformationScript.esd3TagNum2Content1 = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(0)");
    _EsdDynamicTransformationScript.esd3TagNum3Content1 = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(0)");

    //各个选项中的最后一个内容
    _EsdDynamicTransformationScript.esd3TagNum1ContentN = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(" + _EsdDynamicTransformationScript.num13 + ")");
    _EsdDynamicTransformationScript.esd3TagNum2ContentN = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(" + _EsdDynamicTransformationScript.num14 + ")");
    _EsdDynamicTransformationScript.esd3TagNum3ContentN = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(" + _EsdDynamicTransformationScript.num15 + ")");

    //第一块
    _EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {
        e = $(this).mouseover();
        $(this).bind("keydown.keydown_1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
        $(this).unbind("keydown.keydown_1");
    });

    _EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
        $(this).bind("keydown.keydown_s1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd3TagNum1.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
        $(this).unbind("keydown.keydown_s1");
    });

    _EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
        $(this).bind("keydown.keydown_e1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd3TagNum2.mouseover();
                _EsdDynamicTransformationScript.esd3TagNum2.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e1");
    });
    //第二块
    _EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
        $(this).bind("keydown.keydown_2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd3TagNum1.mouseover();
                _EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
        $(this).unbind("keydown.keydown_2");
    });

    _EsdDynamicTransformationScript.esd3TagNum2Content1.focus(function () {
        $(this).bind("keydown.keydown_s2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd3TagNum2.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd3TagNum2Content1.blur(function () {
        $(this).unbind("keydown.keydown_s2");
    });

    _EsdDynamicTransformationScript.esd3TagNum2ContentN.focus(function () {
        $(this).bind("keydown.keydown_e2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd3TagNum3.mouseover();
                _EsdDynamicTransformationScript.esd3TagNum3.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd3TagNum2ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e2");
    });

    //第三块
    _EsdDynamicTransformationScript.esd3TagNum3.focus(function (e) {
        $(this).bind("keydown.keydown_3", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd3TagNum2.mouseover();
                _EsdDynamicTransformationScript.esd3TagNum2ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd3TagNum3Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd3TagNum3.blur(function () {
        $(this).unbind("keydown.keydown_3");
    });

	}
	
	var part_Third = function(){
		
    //第四部分
    //各个选项名称对应的内容数量
    _EsdDynamicTransformationScript.num16 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(0) a").length - 1;
    _EsdDynamicTransformationScript.num17 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(1) a").length - 1;
    _EsdDynamicTransformationScript.num18 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(2) a").length - 1;
    _EsdDynamicTransformationScript.num19 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(3) a").length - 1;

    //各个选项名称
    _EsdDynamicTransformationScript.esd4TagNum1 = $(".Fourth-line-index:eq(0) .outBox-left .hd ul li:eq(0) a");
    _EsdDynamicTransformationScript.esd4TagNum2 = $(".Fourth-line-index:eq(0) .outBox-left .hd ul li:eq(1) a");
    _EsdDynamicTransformationScript.esd4TagNum3 = $(".Fourth-line-index:eq(0) .outBox-left .hd ul li:eq(2) a");
    _EsdDynamicTransformationScript.esd4TagNum4 = $(".Fourth-line-index:eq(0) .outBox-left .hd ul li:eq(3) a");

    //各个选项中的第一个内容
    _EsdDynamicTransformationScript.esd4TagNum1Content1 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(0)");
    _EsdDynamicTransformationScript.esd4TagNum2Content1 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(0)");
    _EsdDynamicTransformationScript.esd4TagNum3Content1 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(0)");
    _EsdDynamicTransformationScript.esd4TagNum4Content1 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(3) a:eq(0)");

    //各个选项中的最后一个内容
    _EsdDynamicTransformationScript.esd4TagNum1ContentN = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(" + _EsdDynamicTransformationScript.num16 + ")");
    _EsdDynamicTransformationScript.esd4TagNum2ContentN = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(" + _EsdDynamicTransformationScript.num17 + ")");
    _EsdDynamicTransformationScript.esd4TagNum3ContentN = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(" + _EsdDynamicTransformationScript.num18 + ")");
    _EsdDynamicTransformationScript.esd4TagNum4ContentN = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(3) a:eq(" + _EsdDynamicTransformationScript.num19 + ")");

    //第一块
    _EsdDynamicTransformationScript.esd4TagNum1.focus(function (e) {
        e = $(this).mouseover();
        $(this).bind("keydown.keydown_1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {}
            else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd4TagNum1Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd4TagNum1.blur(function () {
        $(this).unbind("keydown.keydown_1");
    });

    _EsdDynamicTransformationScript.esd4TagNum1Content1.focus(function () {
        $(this).bind("keydown.keydown_s1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd4TagNum1.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd4TagNum1Content1.blur(function () {
        $(this).unbind("keydown.keydown_s1");
    });

    _EsdDynamicTransformationScript.esd4TagNum1ContentN.focus(function () {
        $(this).bind("keydown.keydown_e1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd4TagNum2.mouseover();
                _EsdDynamicTransformationScript.esd4TagNum2.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd4TagNum1ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e1");
    });
    //第二块
    _EsdDynamicTransformationScript.esd4TagNum2.focus(function (e) {
        $(this).bind("keydown.keydown_2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd4TagNum1.mouseover();
                _EsdDynamicTransformationScript.esd4TagNum1ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd4TagNum2Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd4TagNum2.blur(function () {
        $(this).unbind("keydown.keydown_2");
    });

    _EsdDynamicTransformationScript.esd4TagNum2Content1.focus(function () {
        $(this).bind("keydown.keydown_s2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd4TagNum2.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd4TagNum2Content1.blur(function () {
        $(this).unbind("keydown.keydown_s2");
    });

    _EsdDynamicTransformationScript.esd4TagNum2ContentN.focus(function () {
        $(this).bind("keydown.keydown_e2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd4TagNum3.mouseover();
                _EsdDynamicTransformationScript.esd4TagNum3.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd4TagNum2ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e2");
    });

    //第三块
    _EsdDynamicTransformationScript.esd4TagNum3.focus(function (e) {
        $(this).bind("keydown.keydown_3", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd4TagNum2.mouseover();
                _EsdDynamicTransformationScript.esd4TagNum2ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd4TagNum3Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd4TagNum3.blur(function () {
        $(this).unbind("keydown.keydown_3");
    });

    _EsdDynamicTransformationScript.esd4TagNum3Content1.focus(function () {
        $(this).bind("keydown.keydown_s3", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd4TagNum3.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd4TagNum3Content1.blur(function () {
        $(this).unbind("keydown.keydown_s3");
    });

    _EsdDynamicTransformationScript.esd4TagNum3ContentN.focus(function () {
        $(this).bind("keydown.keydown_e3", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd4TagNum4.mouseover();
                _EsdDynamicTransformationScript.esd4TagNum4.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd4TagNum3ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e3");
    });

    //第四块
    _EsdDynamicTransformationScript.esd4TagNum4.focus(function (e) {
        $(this).bind("keydown.keydown_4", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd4TagNum3.mouseover();
                _EsdDynamicTransformationScript.esd4TagNum3ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd4TagNum4Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd4TagNum4.blur(function () {
        $(this).unbind("keydown.keydown_4");
    });

	}
    
	var part_Forth = function(){
    //第五部分

    //各个选项名称对应的内容数量
    _EsdDynamicTransformationScript.num20 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(0) a").length - 1;
    _EsdDynamicTransformationScript.num21 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(1) a").length - 1;
    _EsdDynamicTransformationScript.num22 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(2) a").length - 1;
    _EsdDynamicTransformationScript.num23 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(3) a").length - 1;

    //各个选项名称
    _EsdDynamicTransformationScript.esd5TagNum1 = $(".Fourth-line-index:eq(0) .outBox-right .hd ul li:eq(0) a");
    _EsdDynamicTransformationScript.esd5TagNum2 = $(".Fourth-line-index:eq(0) .outBox-right .hd ul li:eq(1) a");
    _EsdDynamicTransformationScript.esd5TagNum3 = $(".Fourth-line-index:eq(0) .outBox-right .hd ul li:eq(2) a");
    _EsdDynamicTransformationScript.esd5TagNum4 = $(".Fourth-line-index:eq(0) .outBox-right .hd ul li:eq(3) a");

    //各个选项中的第一个内容
    _EsdDynamicTransformationScript.esd5TagNum1Content1 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(0) a:eq(0)");
    _EsdDynamicTransformationScript.esd5TagNum2Content1 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(0)");
    _EsdDynamicTransformationScript.esd5TagNum3Content1 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(2) a:eq(0)");
    _EsdDynamicTransformationScript.esd5TagNum4Content1 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(3) a:eq(0)");

    //各个选项中的最后一个内容
    _EsdDynamicTransformationScript.esd5TagNum1ContentN = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(0) a:eq(" + _EsdDynamicTransformationScript.num20 + ")");
    _EsdDynamicTransformationScript.esd5TagNum2ContentN = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(" + _EsdDynamicTransformationScript.num21 + ")");
    _EsdDynamicTransformationScript.esd5TagNum3ContentN = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(2) a:eq(" + _EsdDynamicTransformationScript.num22 + ")");
    _EsdDynamicTransformationScript.esd5TagNum4ContentN = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(3) a:eq(" + _EsdDynamicTransformationScript.num23 + ")");

    //第一块
    _EsdDynamicTransformationScript.esd5TagNum1.focus(function (e) {
        e = $(this).mouseover();
        $(this).bind("keydown.keydown_1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {}
            else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd5TagNum1Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd5TagNum1.blur(function () {
        $(this).unbind("keydown.keydown_1");
    });

    _EsdDynamicTransformationScript.esd5TagNum1Content1.focus(function () {
        $(this).bind("keydown.keydown_s1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd5TagNum1.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd5TagNum1Content1.blur(function () {
        $(this).unbind("keydown.keydown_s1");
    });

    _EsdDynamicTransformationScript.esd5TagNum1ContentN.focus(function () {
        $(this).bind("keydown.keydown_e1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd5TagNum2.mouseover();
                _EsdDynamicTransformationScript.esd5TagNum2.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd5TagNum1ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e1");
    });
    //第二块
    _EsdDynamicTransformationScript.esd5TagNum2.focus(function (e) {
        $(this).bind("keydown.keydown_2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd5TagNum1.mouseover();
                _EsdDynamicTransformationScript.esd5TagNum1ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd5TagNum2Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd5TagNum2.blur(function () {
        $(this).unbind("keydown.keydown_2");
    });

    _EsdDynamicTransformationScript.esd5TagNum2Content1.focus(function () {
        $(this).bind("keydown.keydown_s2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd5TagNum2.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd5TagNum2Content1.blur(function () {
        $(this).unbind("keydown.keydown_s2");
    });

    _EsdDynamicTransformationScript.esd5TagNum2ContentN.focus(function () {
        $(this).bind("keydown.keydown_e2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            } else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd5TagNum3.mouseover();
                _EsdDynamicTransformationScript.esd5TagNum3.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd5TagNum2ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e2");
    });

    //第三块
    _EsdDynamicTransformationScript.esd5TagNum3.focus(function (e) {
        $(this).bind("keydown.keydown_3", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd5TagNum2.mouseover();
                _EsdDynamicTransformationScript.esd5TagNum2ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd5TagNum3Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });

    });
    _EsdDynamicTransformationScript.esd5TagNum3.blur(function () {
        $(this).unbind("keydown.keydown_3");
    });

    _EsdDynamicTransformationScript.esd5TagNum3Content1.focus(function () {
        $(this).bind("keydown.keydown_s3", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd5TagNum3.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd5TagNum3Content1.blur(function () {
        $(this).unbind("keydown.keydown_s3");
    });

    _EsdDynamicTransformationScript.esd5TagNum3ContentN.focus(function () {
        $(this).bind("keydown.keydown_e3", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd5TagNum4.mouseover();
                _EsdDynamicTransformationScript.esd5TagNum4.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd5TagNum3ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e3");
    });

    //第四块
    _EsdDynamicTransformationScript.esd5TagNum4.focus(function (e) {
        $(this).bind("keydown.keydown_4", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd5TagNum3.mouseover();
                _EsdDynamicTransformationScript.esd5TagNum3ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd5TagNum4Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd5TagNum4.blur(function () {
        $(this).unbind("keydown.keydown_4");
    });

    
	}
    
	var part_Sixth = function(){
    //第六部分

    //各个选项名称对应的内容数量
    _EsdDynamicTransformationScript.num24 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(0) a").length - 1;
    _EsdDynamicTransformationScript.num25 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(1) a").length - 1;
    _EsdDynamicTransformationScript.num26 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(2) a").length - 1;
    _EsdDynamicTransformationScript.num27 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(3) a").length - 1;

    //各个选项名称
    _EsdDynamicTransformationScript.esd6TagNum1 = $(".Fourth-line-index:eq(1) .outBox-left .hd ul li:eq(0) a");
    _EsdDynamicTransformationScript.esd6TagNum2 = $(".Fourth-line-index:eq(1) .outBox-left .hd ul li:eq(1) a");
    _EsdDynamicTransformationScript.esd6TagNum3 = $(".Fourth-line-index:eq(1) .outBox-left .hd ul li:eq(2) a");
    _EsdDynamicTransformationScript.esd6TagNum4 = $(".Fourth-line-index:eq(1) .outBox-left .hd ul li:eq(3) a");

    //各个选项中的第一个内容
    _EsdDynamicTransformationScript.esd6TagNum1Content1 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(0)");
    _EsdDynamicTransformationScript.esd6TagNum2Content1 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(0)");
    _EsdDynamicTransformationScript.esd6TagNum3Content1 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(0)");
    _EsdDynamicTransformationScript.esd6TagNum4Content1 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(3) a:eq(0)");

    //各个选项中的最后一个内容
    _EsdDynamicTransformationScript.esd6TagNum1ContentN = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(" + _EsdDynamicTransformationScript.num24 + ")");
    _EsdDynamicTransformationScript.esd6TagNum2ContentN = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(" + _EsdDynamicTransformationScript.num25 + ")");
    _EsdDynamicTransformationScript.esd6TagNum3ContentN = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(" + _EsdDynamicTransformationScript.num26 + ")");
    _EsdDynamicTransformationScript.esd6TagNum4ContentN = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(3) a:eq(" + _EsdDynamicTransformationScript.num27 + ")");

    //第一块
    _EsdDynamicTransformationScript.esd6TagNum1.focus(function (e) {
        e = $(this).mouseover();
        $(this).bind("keydown.keydown_1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd6TagNum1Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd6TagNum1.blur(function () {
        $(this).unbind("keydown.keydown_1");
    });

    _EsdDynamicTransformationScript.esd6TagNum1Content1.focus(function () {
        $(this).bind("keydown.keydown_s1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd6TagNum1.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd6TagNum1Content1.blur(function () {
        $(this).unbind("keydown.keydown_s1");
    });

    _EsdDynamicTransformationScript.esd6TagNum1ContentN.focus(function () {
        $(this).bind("keydown.keydown_e1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd6TagNum2.mouseover();
                _EsdDynamicTransformationScript.esd6TagNum2.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd6TagNum1ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e1");
    });
    //第二块
    _EsdDynamicTransformationScript.esd6TagNum2.focus(function (e) {
        $(this).bind("keydown.keydown_2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd6TagNum1.mouseover();
                _EsdDynamicTransformationScript.esd6TagNum1ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd6TagNum2Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd6TagNum2.blur(function () {
        $(this).unbind("keydown.keydown_2");
    });

    _EsdDynamicTransformationScript.esd6TagNum2Content1.focus(function () {
        $(this).bind("keydown.keydown_s2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd6TagNum2.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd6TagNum2Content1.blur(function () {
        $(this).unbind("keydown.keydown_s2");
    });

    _EsdDynamicTransformationScript.esd6TagNum2ContentN.focus(function () {
        $(this).bind("keydown.keydown_e2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd6TagNum3.mouseover();
                _EsdDynamicTransformationScript.esd6TagNum3.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd6TagNum2ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e2");
    });

    //第三块
    _EsdDynamicTransformationScript.esd6TagNum3.focus(function (e) {
        $(this).bind("keydown.keydown_3", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd6TagNum2.mouseover();
                _EsdDynamicTransformationScript.esd6TagNum2ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd6TagNum3Content1.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd6TagNum3.blur(function () {
        $(this).unbind("keydown.keydown_3");
    });

    _EsdDynamicTransformationScript.esd6TagNum3Content1.focus(function () {
        $(this).bind("keydown.keydown_s3", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd6TagNum3.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd6TagNum3Content1.blur(function () {
        $(this).unbind("keydown.keydown_s3");
    });

    _EsdDynamicTransformationScript.esd6TagNum3ContentN.focus(function () {
        $(this).bind("keydown.keydown_e3", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd6TagNum4.mouseover();
                _EsdDynamicTransformationScript.esd6TagNum4.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd6TagNum3ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e3");
    });

    //第四块
    _EsdDynamicTransformationScript.esd6TagNum4.focus(function (e) {
        $(this).bind("keydown.keydown_4", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd6TagNum3.mouseover();
                _EsdDynamicTransformationScript.esd6TagNum3ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd6TagNum4Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });

    });
    _EsdDynamicTransformationScript.esd6TagNum4.blur(function () {
        $(this).unbind("keydown.keydown_4");
    });

	}
    
	var part_Seventh = function(){
    
    //第七部分

    //各个选项名称对应的内容数量
    _EsdDynamicTransformationScript.num28 = $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(0) a").length - 1;
    _EsdDynamicTransformationScript.num29 = $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(1) a").length - 1;

    //各个选项名称
    _EsdDynamicTransformationScript.esd7TagNum1 = $(".Fourth-line-index:eq(1) .outBox-right .hd ul li:eq(0) a");
    _EsdDynamicTransformationScript.esd7TagNum2 = $(".Fourth-line-index:eq(1) .outBox-right .hd ul li:eq(1) a");

    //各个选项中的第一个内容
    _EsdDynamicTransformationScript.esd7TagNum1Content1 = $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(0) a:eq(0)");
    _EsdDynamicTransformationScript.esd7TagNum2Content1 = $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(0)");

    //各个选项中的最后一个内容
    _EsdDynamicTransformationScript.esd7TagNum1ContentN = $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(0) a:eq(" + _EsdDynamicTransformationScript.num28 + ")");
    _EsdDynamicTransformationScript.esd7TagNum2ContentN = $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(" + _EsdDynamicTransformationScript.num29 + ")");

    //第一块
    _EsdDynamicTransformationScript.esd7TagNum1.focus(function (e) {
        e = $(this).mouseover();
        $(this).bind("keydown.keydown_1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd7TagNum1Content1.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd7TagNum1.blur(function () {
        $(this).unbind("keydown.keydown_1");
    });

    _EsdDynamicTransformationScript.esd7TagNum1Content1.focus(function () {
        $(this).bind("keydown.keydown_s1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd7TagNum1.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd7TagNum1Content1.blur(function () {
        $(this).unbind("keydown.keydown_s1");
    });

    _EsdDynamicTransformationScript.esd7TagNum1ContentN.focus(function () {
        $(this).bind("keydown.keydown_e1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd7TagNum2.mouseover();
                _EsdDynamicTransformationScript.esd7TagNum2.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd7TagNum1ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e1");
    });

    //第二块
    _EsdDynamicTransformationScript.esd7TagNum2.focus(function (e) {
        $(this).bind("keydown.keydown_2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd7TagNum1.mouseover();
                _EsdDynamicTransformationScript.esd7TagNum1ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd7TagNum2Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });

    });
    _EsdDynamicTransformationScript.esd7TagNum2.blur(function () {
        $(this).unbind("keydown.keydown_2");
    });

	}
    
	var part_Eigth = function(){
    //第八部分

    //各个选项名称对应的内容数量
    _EsdDynamicTransformationScript.num30 = $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(0) a").length - 1;
    _EsdDynamicTransformationScript.num31 = $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(1) a").length - 1;

    //各个选项名称
    _EsdDynamicTransformationScript.esd8TagNum1 = $(".Fourth-line-index:eq(2) .outBox-left .hd ul li:eq(0) a");
    _EsdDynamicTransformationScript.esd8TagNum2 = $(".Fourth-line-index:eq(2) .outBox-left .hd ul li:eq(1) a");

    //各个选项中的第一个内容
    _EsdDynamicTransformationScript.esd8TagNum1Content1 = $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(0)");
    _EsdDynamicTransformationScript.esd8TagNum2Content1 = $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(0)");

    //各个选项中的最后一个内容
    _EsdDynamicTransformationScript.esd8TagNum1ContentN = $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(" + _EsdDynamicTransformationScript.num30 + ")");
    _EsdDynamicTransformationScript.esd8TagNum2ContentN = $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(" + _EsdDynamicTransformationScript.num31 + ")");

    //第一块
    _EsdDynamicTransformationScript.esd8TagNum1.focus(function (e) {
        e = $(this).mouseover();
        $(this).bind("keydown.keydown_1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd8TagNum1Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd8TagNum1.blur(function () {
        $(this).unbind("keydown.keydown_1");
    });

    _EsdDynamicTransformationScript.esd8TagNum1Content1.focus(function () {
        $(this).bind("keydown.keydown_s1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd8TagNum1.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd8TagNum1Content1.blur(function () {
        $(this).unbind("keydown.keydown_s1");
    });

    _EsdDynamicTransformationScript.esd8TagNum1ContentN.focus(function () {
        $(this).bind("keydown.keydown_e1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd8TagNum2.mouseover();
                _EsdDynamicTransformationScript.esd8TagNum2.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd8TagNum1ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e1");
    });

    //第二块
    _EsdDynamicTransformationScript.esd8TagNum2.focus(function (e) {
        $(this).bind("keydown.keydown_2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd8TagNum1.mouseover();
                _EsdDynamicTransformationScript.esd8TagNum1ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd8TagNum2Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd8TagNum2.blur(function () {
        $(this).unbind("keydown.keydown_2");
    });

	}
    
	var part_Ninth = function(){
    //第九部分

    //各个选项名称对应的内容数量
    _EsdDynamicTransformationScript.num32 = $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(0) a").length - 1;
    _EsdDynamicTransformationScript.num33 = $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(1) a").length - 1;

    //各个选项名称
    _EsdDynamicTransformationScript.esd9TagNum1 = $(".Fourth-line-index:eq(2) .outBox-right .hd ul li:eq(0) a");
    _EsdDynamicTransformationScript.esd9TagNum2 = $(".Fourth-line-index:eq(2) .outBox-right .hd ul li:eq(1) a");

    //各个选项中的第一个内容
    _EsdDynamicTransformationScript.esd9TagNum1Content1 = $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(0) a:eq(0)");
    _EsdDynamicTransformationScript.esd9TagNum2Content1 = $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(0)");

    //各个选项中的最后一个内容
    _EsdDynamicTransformationScript.esd9TagNum1ContentN = $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(0) a:eq(" + _EsdDynamicTransformationScript.num32 + ")");
    _EsdDynamicTransformationScript.esd9TagNum2ContentN = $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(" + _EsdDynamicTransformationScript.num33 + ")");

    //第一块
    _EsdDynamicTransformationScript.esd9TagNum1.focus(function (e) {
        e = $(this).mouseover();
        $(this).bind("keydown.keydown_1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            }else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd9TagNum1Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd9TagNum1.blur(function () {
        $(this).unbind("keydown.keydown_1");
    });

    _EsdDynamicTransformationScript.esd9TagNum1Content1.focus(function () {
        $(this).bind("keydown.keydown_s1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd9TagNum1.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd9TagNum1Content1.blur(function () {
        $(this).unbind("keydown.keydown_s1");
    });

    _EsdDynamicTransformationScript.esd9TagNum1ContentN.focus(function () {
        $(this).bind("keydown.keydown_e1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            	
            } else if (e.keyCode == 9) {
            	_EsdDynamicTransformationScript.esd9TagNum2.mouseover();
                _EsdDynamicTransformationScript.esd9TagNum2.focus();
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd9TagNum1ContentN.blur(function () {
        $(this).unbind("keydown.keydown_e1");
    });

    //第二块
    _EsdDynamicTransformationScript.esd9TagNum2.focus(function (e) {
        $(this).bind("keydown.keydown_2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd9TagNum1.mouseover();
                _EsdDynamicTransformationScript.esd9TagNum1ContentN.focus();
                return false;
            } else if (e.keyCode == 9) {
                _EsdDynamicTransformationScript.esd9TagNum2Content1.focus();
                console.log(document.activeElement);
                return false;
            }
        });
    });
    _EsdDynamicTransformationScript.esd9TagNum2.blur(function () {
        $(this).unbind("keydown.keydown_2");
    });

	}
    
    // ----------------------------------------------- 动态要闻信息转载部分处理 开始 -----------------------------------------------


    _EsdDynamicTransformationScript.navTabChange = function (focusObjSelector, listObjSelector, mouseEventObjSelector, keyDownNum, listElementsSelector, prevMouseEventObjSelector, prevListObjsSelector) {
        var keydownName = "keydown.navKeydown_" + keyDownNum;
        var keydownName2 = keydownName + "_1";
        var keydownName3 = keydownName + "_2";

        $(focusObjSelector).focus(function () {
            $(focusObjSelector).mouseover();
            $(this).bind(keydownName, function (e) {
                if (e.shiftKey && e.keyCode == 9) {
                    if (prevMouseEventObjSelector != "") {
                        $(focusObjSelector).mouseout();
                        $(prevMouseEventObjSelector).mouseover();
                        $(prevListObjsSelector).last().focus();
                        $(this).unbind(keydownName); // 失去焦点时解绑有问题在这解绑一次
                        return false;
                    } else {
                        $(focusObjSelector).mouseout();
                        $(this).unbind(keydownName); // 失去焦点时解绑有问题在这解绑一次
                    }
                } else if (e.keyCode == 9) {
                    $(listElementsSelector).first().focus();
                    return false;
                }
            });

        });
        $(focusObjSelector).blur(function () {
            $(this).unbind(keydownName);
        });

        $(listElementsSelector).first().focus(function () {
            $(this).bind(keydownName2, function (e) {
                if (e.shiftKey && e.keyCode == 9) {
                    $(focusObjSelector).focus();
                    return false;
                } else if (e.keyCode == 9) {}
            });
        });
        $(listElementsSelector).first().blur(function () {
            $(this).unbind(keydownName2);
        });

        $(listElementsSelector).last().focus(function () {
            $(this).bind(keydownName3, function (e) {
                if (e.shiftKey && e.keyCode == 9) {
                	
                }else if (e.keyCode == 9) {
                    $(mouseEventObjSelector).mouseout();
                    $(mouseEventObjSelector).next().mouseover();
                    $(mouseEventObjSelector).next().find("a").focus();
                    return false;
                }
            });
        });
        $(listElementsSelector).last().blur(function () {
            $(this).unbind(keydownName3);
        });
    };

    _EsdDynamicTransformationScript.tabArray = new Array();

    _EsdDynamicTransformationScript.tab1 = {}
    _EsdDynamicTransformationScript.tab1.focusObjSelector = ".outBox-ywnews .hd li:eq(0) a"; //按tab聚焦元素的选择器
    _EsdDynamicTransformationScript.tab1.listObjSelector = ""; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
    _EsdDynamicTransformationScript.tab1.mouseEventObjSelector = ".outBox-ywnews .hd li:eq(0)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
    _EsdDynamicTransformationScript.tab1.keyDownNum = 0; // keydown事件标识  最好不要重复
    _EsdDynamicTransformationScript.tab1.listElementsSelector = ".outBox-ywnews .inBox-ywnews:eq(0) a"; // 按tab聚焦后 展示列表中a链接的选择器
    _EsdDynamicTransformationScript.tab1.prevMouseEventObjSelector = ""; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
    _EsdDynamicTransformationScript.tab1.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

    _EsdDynamicTransformationScript.tabArray.push(_EsdDynamicTransformationScript.tab1); // 放到数组里循环

    _EsdDynamicTransformationScript.tab2 = {}
    _EsdDynamicTransformationScript.tab2.focusObjSelector = ".outBox-ywnews .hd li:eq(1) a"; //按tab聚焦元素的选择器
    _EsdDynamicTransformationScript.tab2.listObjSelector = ""; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
    _EsdDynamicTransformationScript.tab2.mouseEventObjSelector = ".outBox-ywnews .hd li:eq(1)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
    _EsdDynamicTransformationScript.tab2.keyDownNum = 1; // keydown事件标识  最好不要重复
    _EsdDynamicTransformationScript.tab2.listElementsSelector = ".outBox-ywnews .inBox-ywnews:eq(1) a"; // 按tab聚焦后 展示列表中a链接的选择器
    _EsdDynamicTransformationScript.tab2.prevMouseEventObjSelector = ".outBox-ywnews .hd li:eq(0)"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
    _EsdDynamicTransformationScript.tab2.prevListObjsSelector = ".outBox-ywnews .inBox-ywnews:eq(0) a"; // 上一个相邻的展示列表中a链接的选择器

    _EsdDynamicTransformationScript.tabArray.push(_EsdDynamicTransformationScript.tab2); // 放到数组里循环


    for (var i = 0; i < _EsdDynamicTransformationScript.tabArray.length; i++) {
        _EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.tabArray[i].focusObjSelector, _EsdDynamicTransformationScript.tabArray[i].listObjSelector,
            _EsdDynamicTransformationScript.tabArray[i].mouseEventObjSelector, _EsdDynamicTransformationScript.tabArray[i].keyDownNum, _EsdDynamicTransformationScript.tabArray[i].listElementsSelector,
            _EsdDynamicTransformationScript.tabArray[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.tabArray[i].prevListObjsSelector);
    }

    _EsdDynamicTransformationScript.tab3 = {}
    _EsdDynamicTransformationScript.tab3.focusObjSelector = ".outBox-ywnews .hd li:eq(2) a"; //按tab聚焦元素的选择器
    _EsdDynamicTransformationScript.tab3.listObjSelector = ""; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
    _EsdDynamicTransformationScript.tab3.mouseEventObjSelector = ".outBox-ywnews .hd li:eq(2)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
    _EsdDynamicTransformationScript.tab3.keyDownNum = 2; // keydown事件标识  最好不要重复
    _EsdDynamicTransformationScript.tab3.listElementsSelector = ".outBox-ywnews .inBox-ywnews:eq(2) a"; // 按tab聚焦后 展示列表中a链接的选择器
    _EsdDynamicTransformationScript.tab3.prevMouseEventObjSelector = ".outBox-ywnews .hd li:eq(1)"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
    _EsdDynamicTransformationScript.tab3.prevListObjsSelector = ".outBox-ywnews .inBox-ywnews:eq(1) a"; // 上一个相邻的展示列表中a链接的选择器


    _EsdDynamicTransformationScript.tyjTab3Change = function (focusObjSelector, listObjSelector, mouseEventObjSelector, keyDownNum, listElementsSelector, prevMouseEventObjSelector, prevListObjsSelector) {
        var keydownName = "keydown.navKeydown_" + keyDownNum;
        var keydownName2 = keydownName + "_1";
        var keydownName3 = keydownName + "_2";

        $(focusObjSelector).focus(function () {
            $(focusObjSelector).mouseover();
            $(this).bind(keydownName, function (e) {
                if (e.shiftKey && e.keyCode == 9) {
                    if (prevMouseEventObjSelector != "") {
                        $(focusObjSelector).mouseout();
                        $(prevMouseEventObjSelector).mouseover();
                        $(prevListObjsSelector).last().focus();
                        $(this).unbind(keydownName); // 失去焦点时解绑有问题在这解绑一次
                        return false;
                    } else {
                        $(focusObjSelector).mouseout();
                        $(this).unbind(keydownName); // 失去焦点时解绑有问题在这解绑一次
                    }
                } else if (e.keyCode == 9) {
                    $(listElementsSelector).first().focus();
                    return false;
                }
            });

        });
        $(focusObjSelector).blur(function () {
            $(this).unbind(keydownName);
        });

        $(listElementsSelector).first().focus(function () {
            $(this).bind(keydownName2, function (e) {
                if (e.shiftKey && e.keyCode == 9) {
                    $(focusObjSelector).focus();
                    return false;
                } else if (e.keyCode == 9) {}
            });
        });
        $(listElementsSelector).first().blur(function () {
            $(this).unbind(keydownName2);
        });

    };

    _EsdDynamicTransformationScript.tyjTab3Change(_EsdDynamicTransformationScript.tab3.focusObjSelector, _EsdDynamicTransformationScript.tab3.listObjSelector,
        _EsdDynamicTransformationScript.tab3.mouseEventObjSelector, _EsdDynamicTransformationScript.tab3.keyDownNum, _EsdDynamicTransformationScript.tab3.listElementsSelector,
        _EsdDynamicTransformationScript.tab3.prevMouseEventObjSelector, _EsdDynamicTransformationScript.tab3.prevListObjsSelector);

    //将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
    _EsdDynamicTransformationScript.getIframeInfos = function (jsObj, iframeObj) {
        if (iframeObj != undefined) {
            jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
            jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
            jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num - 1];
            jsObj.self = iframeObj;
        }
    };

    //声明iframe操作对象
    _EsdDynamicTransformationScript.iframe1 = {};
    _EsdDynamicTransformationScript.iframe2 = {};

    _EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[0]; // 需要修改 这里的iframe获取
    _EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[1]; // 需要修改 这里的iframe获取

    //选项卡标签 jquery对象
    _EsdDynamicTransformationScript.iframeTab1 = $(".inHd li:eq(0) a"); // 需要修改 这里的tab获取
    _EsdDynamicTransformationScript.iframeTab2 = $(".inHd li:eq(1) a"); // 需要修改 这里的tab获取

    // 判断iframe是否有效
    if ((_EsdDynamicTransformationScript.iframeElement1 != undefined) && (_EsdDynamicTransformationScript.iframeElement2 != undefined)) {

        // 当iframe都加载完毕后执行代码 使用setInterval
        _EsdDynamicTransformationScript.iframeInterval = setInterval(function () {

                if ((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0] != undefined)
                     && _EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0] != undefined) {
                    clearInterval(_EsdDynamicTransformationScript.iframeInterval);

                    //通过方法赋值
                    _EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1, _EsdDynamicTransformationScript.iframeElement1);
                    _EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2, _EsdDynamicTransformationScript.iframeElement2);

                    //第一个标签 切换
                    _EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
                        console.log("tab1获取到焦点");
                        e = $(this).mouseover();
                        $(this).bind("keydown.iframeKeydown_1", function (e) {
                            if (e.shiftKey && e.keyCode == 9) {
                                console.log("tab1向回切换");
                                _EsdDynamicTransformationScript.iframeTab1.trigger("blur");
                            } else if (e.keyCode == 9) {
                                console.log("tab1继续切换到iframe上");
                                _EsdDynamicTransformationScript.iframeTab1.trigger("blur");
                                $(_EsdDynamicTransformationScript.iframe1.self).focus();
                                console.log(document.activeElement);
                                return false;
                            }
                        });
                    });
                    _EsdDynamicTransformationScript.iframeTab1.blur(function () {
                        $(this).unbind("keydown.iframeKeydown_1");
                    });

                    //第一个标签的第一个链接
                    $(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
                        console.log("第一个iframe的第一条获得焦点");
                        $(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
                            if (e.shiftKey && e.keyCode == 9) {
                                console.log("第一个iframe的第一条向上切换");
                                $(this).trigger("blur");
                                _EsdDynamicTransformationScript.iframeTab1.focus();
                                return false;
                            } else if (e.keyCode == 9) {
                                console.log("第一个iframe的第一条继续切换");
                            }
                        });
                    });
                    $(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
                        $(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
                    });

                    //第一个标签的最后一个链接
                    $(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
                        console.log("第一个iframe的最后一条获得焦点");
                        $(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
                            if (e.shiftKey && e.keyCode == 9) {
                                console.log("第一个iframe的最后一条向上切换");
                            } else if (e.keyCode == 9) {
                                console.log("第一个iframe的最后一条继续切换 到下一个标签");
                                $(this).trigger("blur");
                                _EsdDynamicTransformationScript.iframeTab2.focus();
                                return false;
                            }
                        });
                    });
                    $(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
                        $(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
                    });

                    //第二个标签切换
                    _EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
                        console.log("tab2获取到焦点");
                        e = $(this).mouseover();
                        $(this).bind("keydown.iframeKeydown_2", function (e) {
                            if (e.shiftKey && e.keyCode == 9) {
                                console.log("第二个标签向回切换 到第一个标签的最后一条");
                               // _EsdDynamicTransformationScript.iframeTab2.trigger("blur");
                                _EsdDynamicTransformationScript.iframeTab1.mouseover();
                                $(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
                                return false;
                            } else if (e.keyCode == 9) {
                                _EsdDynamicTransformationScript.iframeTab2.trigger("blur");
                                $(_EsdDynamicTransformationScript.iframe2.self).focus();
                                console.log(document.activeElement);
                                return false;
                            }
                        });

                    });
                    _EsdDynamicTransformationScript.iframeTab2.blur(function () {
                        $(this).unbind("keydown.iframeKeydown_2");
                    });
                }

            }, 500);

    }

    // ----------------------------------------------- 动态要闻信息转载部分处理 结束 -----------------------------------------------

    // ----------------------------------------------- 相关链接处理 开始 -----------------------------------------------

    // 国家机构之前一个焦点切换
    $(".flex-control-nav li:eq(4) a").focus(function () {
        $(this).bind("keydown.iframeKeydown_about_1", function (e) {
            if (e.shiftKey && e.keyCode == 9) {}
            else if (e.keyCode == 9) {
                $(".tyj-xglj-ul li:eq(0)").mouseover();
                $(".tyj-xglj-ul li:eq(0) p a").first().focus();
                return false;
            }
        });
    });
    $(".flex-control-nav li:eq(4) a").blur(function () {
        $(this).unbind("keydown.iframeKeydown_about_1");
    });
    // 国家机构最后一个焦点
    $(".tyj-xglj-ul li:eq(0) p a").last().focus(function () {
        $(this).bind("keydown.iframeKeydown_about_2", function (e) {
            if (e.shiftKey && e.keyCode == 9) {}
            else if (e.keyCode == 9) {
                $(".tyj-xglj-ul li:eq(0)").mouseout();
                $(".tyj-xglj-ul li:eq(1)").mouseover();
                $(".tyj-xglj-ul li:eq(1) p a").first().focus();
                return false;
            }
        });
    });

    $(".tyj-xglj-ul li:eq(0) p a").last().blur(function () {
        $(this).unbind("keydown.iframeKeydown_about_2");
    });
    // 省级体育机构
    $(".tyj-xglj-ul li:eq(1) p a").first().focus(function () {
        $(this).bind("keydown.iframeKeydown_about_6", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                $(".tyj-xglj-ul li:eq(1)").mouseout();
                $(".tyj-xglj-ul li:eq(0)").mouseover();
                $(".tyj-xglj-ul li:eq(0) p a").last().focus();
                return false;
            } else if (e.keyCode == 9) {}
        });
    });

    $(".tyj-xglj-ul li:eq(1) p a").first().blur(function () {
        $(this).unbind("keydown.iframeKeydown_about_6");
    });
    $(".tyj-xglj-ul li:eq(1) p a").last().focus(function () {
        $(this).bind("keydown.iframeKeydown_about_3", function (e) {
            if (e.shiftKey && e.keyCode == 9) {}
            else if (e.keyCode == 9) {
                $(".tyj-xglj-ul li:eq(1)").mouseout();
                $(".tyj-xglj-ul li:eq(2)").mouseover();
                $(".tyj-xglj-ul li:eq(2) p a").first().focus();
                return false;
            }
        });
    });

    $(".tyj-xglj-ul li:eq(1) p a").last().blur(function () {
        $(this).unbind("keydown.iframeKeydown_about_3");
    });

    // 省级政府机构
    $(".tyj-xglj-ul li:eq(2) p a").first().focus(function () {
        $(this).bind("keydown.iframeKeydown_about_5", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                $(".tyj-xglj-ul li:eq(2)").mouseout();
                $(".tyj-xglj-ul li:eq(1)").mouseover();
                $(".tyj-xglj-ul li:eq(1) p a").last().focus();
                return false;
            } else if (e.keyCode == 9) {}
        });
    });

    $(".tyj-xglj-ul li:eq(2) p a").first().blur(function () {
        $(this).unbind("keydown.iframeKeydown_about_5");
    });

    $(".tyj-xglj-ul li:eq(2) p a").last().focus(function () {
        $(this).bind("keydown.iframeKeydown_about_3", function (e) {
            if (e.shiftKey && e.keyCode == 9) {}
            else if (e.keyCode == 9) {
                $(".tyj-xglj-ul li:eq(2)").mouseout();
                $(".tyj-xglj-ul li:eq(3)").mouseover();
                $(".tyj-xglj-ul li:eq(3) p a").first().focus();
                return false;
            }
        });
    });

    $(".tyj-xglj-ul li:eq(2) p a").last().blur(function () {
        $(this).unbind("keydown.iframeKeydown_about_3");
    });

    // 市级体育机构
    $(".tyj-xglj-ul li:eq(3) p a").first().focus(function () {
        $(this).bind("keydown.iframeKeydown_about_4", function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                $(".tyj-xglj-ul li:eq(3)").mouseout();
                $(".tyj-xglj-ul li:eq(2)").mouseover();
                $(".tyj-xglj-ul li:eq(2) p a").last().focus();
                return false;
            } else if (e.keyCode == 9) {}
        });
    });

    $(".tyj-xglj-ul li:eq(3) p a").first().blur(function () {
        $(this).unbind("keydown.iframeKeydown_about_4");
    });

    // ----------------------------------------------- 相关链接处理 结束 -----------------------------------------------


}
